/*
 * @Author: atao
 * @Date: 2023-11-13 19:12:33
 * @LastEditTime: 2023-12-13 16:31:42
 * @FilePath: \yayun-web000\src\main.js
 */
import Vue from 'vue'
import App from './views/index.vue'
import router from './router'
import store from './store'
/**集成element-ui组件库 */
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//引入自定义样式
import "./style/index.less"
import plugin from './components';
Vue.use(ElementUI);
//生产环境的tip是否展示
Vue.config.productionTip = false
/**注入自己的插件 */
Vue.use(plugin);
// import BlankLayout from '@/components/BlankLayout'
// Vue.component('BlankLayout', BlankLayout);
/** rem适配 */
function remFunc() {
  let width = document.body.clientWidth;
  let fontSize = width / 1920 * 20;
  document.documentElement.style.fontSize = (fontSize < 12 ? 12 : fontSize) + 'px';
}
remFunc();
window.addEventListener('resize', remFunc);

new Vue({
  /**注入路由实例到全局 */
  router: router,
  /**注入状态管理器到全局  */
  store: store,
  render: h => h(App),
}).$mount('#root')
